fix(http-bridge): re-check liveness before retiring a stale pending session - #1649
fix(http-bridge): re-check liveness before retiring a stale pending session#1649Komzpa wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d1238f4d3e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
25bb222 to
fe010f0
Compare
5c899d6 to
961cdc8
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1966752128
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Thanks for the fast iterations on the codex P1s — the lock-ordering fix (sampling pending state before 1.
The codex finding you were addressing asked for evidence that is new since the caller's snapshot. Snapshotting 2. Split-lock claim of The close claim moved under 3. Stale-base artifact:
4. Test gap Both new tests model callers with One more process note: the last codex review ran on |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d877cb56a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
2d877cb to
c009b95
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c009b9592b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Thanks — verified at head 378bd09 that all three prior blockers are resolved in code: the liveness signal now compares
Happy to do a full re-review as soon as the rebased head is green. |
|
Rebase nudge: this was substantively approved on 08-16 pending a careful rebase — the offer of a prompt full re-review as soon as a rebased head is green still stands. Highest-leverage branch in your open batch, worth doing first. |
…ession Rebased onto current main; squashed the branch's review-iteration commits. The liveness re-check now runs ahead of main's session detachment helper so a session that became healthy while the retirement task was suspended is revived instead of detached, and detached sessions keep main's lifecycle ownership.
378bd09 to
9e8a032
Compare
|
Warning Review limit reached
Next review available in: 59 minutes Limit details: You’ve used all 3 included reviews currently available. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
Comment |
_retire_stale_pending_http_bridge_sessionsampledresponse_events_seenBEFORE anawait(the retry-circuit failure record), then retired the session from that pre-await snapshot. A healthy turn that receives its first response event during the suspension is retired anyway — killing a live turn on hard-strength keys.Fix: re-sample response liveness under the registry + pending locks immediately before the close decision; a session that has since become healthy is not retired. Genuinely eventless sessions still retire.
Regression fails pre-fix (healthy turn killed) and passes post-fix, plus a control proving a truly-stale session still retires; 473 unit + 119 integration green (the 2 known reconnect failures are the separate
bridge_instance_mismatchregression, fixed in its own PR).